package com.wwc.sc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Value;

import java.util.UUID;

/**
 * @author WWC
 */
@RestController
@RequestMapping(value = "/payment")
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @RequestMapping(value = "/zookeeper")
    public String paymentZookeeper() {
        return "spring cloud with zookeeper: "+serverPort+"\t"+ UUID.randomUUID();
    }
}



